package lab02.Test06;

/**
 * Created by lenovo on 2017/10/15.
 */
public class Ladder {
    double uplenth;
    double lowerlenth;
    double high;

    public Ladder() {
    }

    Ladder(double uplenth, double lowerlenth, double high) {
        this.uplenth = uplenth;
        this.lowerlenth = lowerlenth;
        this.high = high;
    }

    public double area() {
        double area = (uplenth + lowerlenth) * high / 2;
        return area;
    }
}
